package com.twu.biblioteca;

import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class BibliotecaApp{

    public static void go(InputStream in, PrintStream out){
        BibliotecaLibrary library = new BibliotecaLibrary();
        Command commandClass = new Command();


        Scanner keyboard = new Scanner((in));
        String command = keyboard.nextLine();

        while (!command.equals("Quit")){
            if (!commandClass.validCommand(command)) {
                out.println("Select a valid option!");
            }


            if (keyboard.hasNextLine())
                command = keyboard.nextLine();
            else
                break;
        }
    }
}
